home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Opera 1.xpl < prev    next >
Text File  |  1999-09-15  |  2KB  |  107 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Internet\Opera\"
  5. "NAME"="Window Settings"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Automatically tile Opera windows"
  9. "TEXT 2"="Automatically run Opera windows in Full Screen"
  10. "TEXT 3"="Enable scroll bars in Opera windows"
  11. "TEXT 4"="Display menu bar for File, Edit, View..."
  12. "DESCRIPTION 1"="Some options for Opera."
  13. "DESCRIPTION 2"="Opera may be obtained at http://www.opera.com"
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com"
  17. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  18.  
  19.  
  20. sFile=""
  21. sVal_On="1"
  22. sVal_Off="0"
  23.  
  24. sSec="USER PREFS"
  25. sSec2="WINDOW"
  26. sV1="AUTO TILE"
  27. sV2="FullScreen"
  28. sV3="SHOW SCROLLBARS"
  29. sV4="SHOW MENU"
  30.  
  31.  
  32. Sub GetINIFile
  33.     s=GetWinDir
  34.     sFile=s & "OPERA.ini"
  35. End Sub
  36.  
  37. Sub Plugin_Initialize 
  38.  Call GetINIFile
  39.  
  40.  If FileExists(sFile) then
  41.  
  42.     i=IniReadValue(sFile,sSec,sV1)
  43.     if i=sVal_On then SetUiElement 1,true
  44.  
  45.     i=IniReadValue(sFile,sSec2,sV2)
  46.     if i=sVal_On then SetUiElement 2,true
  47.  
  48.     i=IniReadValue(sFile,sSec,sV3)
  49.     if i=sVal_On then SetUiElement 3,true
  50.  
  51.     i=IniReadValue(sFile,sSec,sV4)
  52.     if i=sVal_On then SetUiElement 4,true
  53.  
  54.  else
  55.     Call Disable()
  56.  End if
  57.  
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_CheckData(ElementIndex)
  62. End Sub
  63.  
  64.  
  65.  
  66. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  67.  b=GetUIElement(1)
  68.  if b=true then 
  69.     s=sVal_On
  70.  else
  71.     s=sVal_Off
  72.  end if
  73.  Call iniWriteValue(sFile,sSec,sV1,s)
  74.  
  75.  b=GetUIElement(2)
  76.  if b=true then 
  77.     s=sVal_On
  78.  else
  79.     s=sVal_Off
  80.  end if
  81.  Call iniWriteValue(sFile,sSec2,sV2,s)
  82.  
  83.  b=GetUIElement(3)
  84.  if b=true then 
  85.     s=sVal_On
  86.  else
  87.     s=sVal_Off
  88.  end if
  89.  Call iniWriteValue(sFile,sSec,sV3,s)
  90.  
  91.  b=GetUIElement(4)
  92.  if b=true then 
  93.     s=sVal_On
  94.  else
  95.     s=sVal_Off
  96.  end if
  97.  Call iniWriteValue(sFile,sSec,sV4,s)
  98.  
  99. End Sub
  100.  
  101.  
  102. Sub Plugin_Terminate 
  103. End Sub
  104.  
  105.  
  106.  
  107.